package com.jf.cloud.multishop.mapper;

import com.jf.cloud.multishop.dto.ShopMsgUserDTO;
import com.jf.cloud.multishop.model.ShopMsgUser;
import com.jf.cloud.multishop.vo.ShopMsgUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 *
 * @author zz
 * @date 2023-03-26 15:42:57
 */
public interface ShopMsgUserMapper {

    /**
     * 获取列表
     * @return 列表
     */
    List<ShopMsgUser> list(@Param("shopMsgUser") ShopMsgUserDTO shopMsgUserDTO);

    /**
     * 根据id获取
     *
     * @param id id
     * @return 
     */
    ShopMsgUser getById(@Param("id") Long id);

    /**
     * 根据openId获取
     *
     * @param openId openId
     * @return
     */
    ShopMsgUser getByOpenId(@Param("openId") String openId,@Param("shopId") Long shopId);

    /**
     * 保存
     * @param shopMsgUser 
     */
    void save(@Param("shopMsgUser") ShopMsgUser shopMsgUser);

    /**
     * 更新
     * @param shopMsgUser 
     */
    void update(@Param("shopMsgUser") ShopMsgUser shopMsgUser);

    /**
     * 根据id删除
     * @param id
     */
    void deleteById(@Param("id") Long id);

    List<ShopMsgUser> listByShopId(@Param("shopId") Long shopId);

    List<String> listOpenIdByShopId(@Param("shopId") Long shopId);
}
